package com.liruo.oauth2.server.configuration;

import io.swagger.v3.oas.models.OpenAPI;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * @Author:liruo
 * @Date:2023-06-13-16:47:28
 * @Desc
 */
@Profile("dev")
@Configuration
@EnableConfigurationProperties(SpringdocProperties.class)
public class SpringdocConfiguration {
  @Bean
  public OpenAPI openAPI(SpringdocProperties springdocProperties){
    return springdocProperties.getOpenApi();
  }

}
